package com.crm.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class BaseModel {
	
    private Integer enable;//可用

    private Integer sortCode;

    private Integer deleteMark = 1;//未删除
    
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createDate;

    private String createUserId;

    private String createUserName;
    
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date modifyDate = new Date();

    private String modifyUserId;

    private String modifyUserName;
    
    private String typeFrom;
    
    private String roleFW;
    
    
    
    public String getRoleFW() {
		return roleFW;
	}

	public void setRoleFW(String roleFW) {
		this.roleFW = roleFW;
	}

	public String getTypeFrom() {
		return typeFrom;
	}

	public void setTypeFrom(String typeFrom) {
		this.typeFrom = typeFrom;
	}

	/**
     * 查看权限，由小到大
     */
    private String catRol;
    
    /**
     * 查看权限是否开启0关闭1开启
     */
    private String catRolEnable;
    
    /**
     * 控制台查看标签范围
     * 1待沟通，沟通
     * 2预约单，上门，订座，报名
     */
    private String catLab;
    
    
    public String getCatLab() {
		return catLab;
	}

	public void setCatLab(String catLab) {
		this.catLab = catLab;
	}

	/**
     * 页面检索框
     */
    private String searchVal;
    
    
    
    public String getCatRolEnable() {
		return catRolEnable;
	}

	public void setCatRolEnable(String catRolEnable) {
		this.catRolEnable = catRolEnable;
	}

	public String getCatRol() {
		return catRol;
	}

	public void setCatRol(String catRol) {
		this.catRol = catRol;
	}

	@DateTimeFormat(pattern="MM/dd/yyyy")
    private Date maxDate;
    
    @DateTimeFormat(pattern="MM/dd/yyyy")
    private Date minDate;
    
	public Date getMaxDate() {
		return maxDate;
	}

	public void setMaxDate(Date maxDate) {
		this.maxDate = maxDate;
	}

	public Date getMinDate() {
		return minDate;
	}

	public void setMinDate(Date minDate) {
		this.minDate = minDate;
	}

	public String getSearchVal() {
		return searchVal;
	}

	public void setSearchVal(String searchVal) {
		this.searchVal = searchVal;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getSortCode() {
		return sortCode;
	}

	public void setSortCode(Integer sortCode) {
		this.sortCode = sortCode;
	}

	public Integer getDeleteMark() {
		return deleteMark;
	}

	public void setDeleteMark(Integer deleteMark) {
		this.deleteMark = deleteMark;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai") 
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai") 
	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public String getModifyUserName() {
		return modifyUserName;
	}

	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}
    
}
